package com.ysy.tz.mfg.entity;

public class EmployeeEntity extends BaseEntity {
    private String employeeCode;
    private String employeeName;

    public EmployeeEntity() {
    }

    public String getEmployeeCode() {
        return this.employeeCode;
    }

    public String getEmployeeName() {
        return this.employeeName;
    }

    public void setEmployeeCode(String employeeCode) {
        this.employeeCode = employeeCode;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof EmployeeEntity)) {
            return false;
        } else {
            EmployeeEntity other = (EmployeeEntity)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                Object this$employeeCode = this.getEmployeeCode();
                Object other$employeeCode = other.getEmployeeCode();
                if (this$employeeCode == null) {
                    if (other$employeeCode != null) {
                        return false;
                    }
                } else if (!this$employeeCode.equals(other$employeeCode)) {
                    return false;
                }

                Object this$employeeName = this.getEmployeeName();
                Object other$employeeName = other.getEmployeeName();
                if (this$employeeName == null) {
                    if (other$employeeName != null) {
                        return false;
                    }
                } else if (!this$employeeName.equals(other$employeeName)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(Object other) {
        return other instanceof EmployeeEntity;
    }

    public int hashCode() {
        int result = 1;
        Object $employeeCode = this.getEmployeeCode();
        result = result * 59 + ($employeeCode == null ? 43 : $employeeCode.hashCode());
        Object $employeeName = this.getEmployeeName();
        result = result * 59 + ($employeeName == null ? 43 : $employeeName.hashCode());
        return result;
    }

    public String toString() {
        return "EmployeeEntity(employeeCode=" + this.getEmployeeCode() + ", employeeName=" + this.getEmployeeName() + ")";
    }
}
